/*
 * @Descripttion:
 * @version:
 * @Author: lwj
 * @Date: 2022-05-26 13:54:03
 * @LastEditors: yuanliutech@lwj
 * @LastEditTime: 2022-11-30 15:41:10
 */
import store from '../store';
export default {
    methods: {
        // 表头bgc
        headerStyle() {
            if (store.state.config.isWhiteTheme) {
                // return 'background: rgb(243, 242, 247);border-bottom: none;border-top: 2px solid #ebe9f1;border-bottom: 2px solid #ebe9f1;color:#5d596c;';
                return 'background: #FFFFFF;border-top: 0px solid #ebe9f1;border-bottom: 1px solid #DBDADE;color:#5d596c;';
            } else {
                // return 'background: rgb(52, 61, 85);border-bottom: none;border-top: 2px solid #3b4253;border-bottom: 2px solid #3b4253;color:#cfd3ec;';
                return 'background: #2F3349;border-top: 0px solid #3b4253;border-bottom: 1px solid #434968;color:#cfd3ec;';
            }
        },
        // 表格隔行显示不同颜色
        tableRowClassName({
            row,
            rowIndex
        }) {
            if (rowIndex % 2 === 1) {
                return 'warning-row';
            } else if (rowIndex % 2 == 0) {
                return 'success-row';
            }
            return '';
        },
    },
};